package com.shuhg.bean
{
	import shg.book.size.BookData;

	/**
	 * 书籍的参数信息
	 * */
	public class BookParameter
	{
		//版本信息，0免费  1,收费
		private var _version:Number;
		//书籍的ID
		private var _bookId:String;
		//书籍的名称
		private var _bookName:String;
		//书籍作者
		private var _authorName:String;
		//书籍的总页数
		private var _pageCount:Number;
		//书籍面板的宽
		private var _bookWidth:Number;
		//书籍面板高
		private var _bookHeigth:Number;
		//书籍内容加密后的字节数组长度
		private var _contentLength:Number;
		//封面一字节数组长度
		private var _coverOneLength:Number;
		//封面二字节数组长度
		private var _coverTwoLength:Number;
		//封面三字节数组长度
		private var _coverThreeLength:Number;
		//封面四字节数组长度
		private var _coverFourLength:Number;
		
		
		public function BookParameter()
		{
			
		}
		public function initAPP(o:Object):BookParameter{
			for(var key:Object in o){
				switch(key){
					case "version":
						this.version=o[key];
						break;
					case "contentLength":
						this.contentLength=o[key];
						break;
					case "coverOneLength":
						this.coverOneLength = o[key];
						break;
					case "coverTwoLength":
						this.coverTwoLength = o[key];
						break;
					case "coverThreeLength":
						this.coverThreeLength = o[key];
						break;
					case "coverFourLength":
						this.coverFourLength = o[key];
						break;
					case "bookHeigth":
						this.bookHeigth = o[key];
						break;
					case "bookWidth":
						this.bookWidth = o[key];
						break;
					case "bookId":
						this.bookId = o[key];
						break;
					case "bookName":
						this.bookName = o[key];
						break;
					case "authorName":
						this.authorName = o[key];
						break;
					case "pageCount":
						this.pageCount = o[key];
						break;
				}
				trace(key,"   ",o[key]);
			}
			return this;
		}
		//
		public function set version(value:Number ):void{
			this._version=value;
		}
		public function get version():Number{
			return this._version;
		}
		//
		public function set bookId(value:String ):void{
			this._bookId=value;
		}
		public function get bookId():String{
			return this._bookId;
		}
		//
		public function set bookWidth(value:Number ):void{
			this._bookWidth=value;
		}
		public function get bookWidth():Number{
			return this._bookWidth;
		}
		//
		public function set bookHeigth(value:Number ):void{
			this._bookHeigth=value;
		}
		public function get bookHeigth():Number{
			return this._bookHeigth;
		}
		//
		public function set contentLength(value:Number ):void{
			this._contentLength=value;
		}
		public function get contentLength():Number{
			return this._contentLength;
		}
		//
		public function set coverOneLength(value:Number ):void{
			this._coverOneLength=value;
		}
		public function get coverOneLength():Number{
			return this._coverOneLength;
		}
		//
		public function set coverTwoLength(value:Number ):void{
			this._coverTwoLength=value;
		}
		public function get coverTwoLength():Number{
			return this._coverTwoLength;
		}
		//
		public function set coverThreeLength(value:Number ):void{
			this._coverThreeLength=value;
		}
		public function get coverThreeLength():Number{
			return this._coverThreeLength;
		}
		//
		public function set coverFourLength(value:Number ):void{
			this._coverFourLength=value;
		}
		public function get coverFourLength():Number{
			return this._coverFourLength;
		}
		//
		public function set bookName(value:String ):void{
			this._bookName=value;
		}
		public function get bookName():String{
			return this._bookName;
		}
		//
		public function set authorName(value:String ):void{
			this._authorName=value;
		}
		public function get authorName():String{
			return this._authorName;
		}
		//
		public function set pageCount(value:Number ):void{
			this._pageCount=value;
		}
		public function get pageCount():Number{
			return this._pageCount;
		}
	}
}